<h3>Filmu izrādes</h3>
<a class="btn btn-info" href="/show/add/">Pievienot</a>
<table class="table table-striped">  
    <thead>  
        <tr>  
            <th>Filma</th>
            <th>Sākums</th>
            <th>Beigas</th>
            <th>Filmas ilgums</th>
            <th>Cena</th>
            <th></th>
        </tr>  
    </thead>  
    <tbody>  
        <?php foreach($content as $item) { 
           echo 
            '<tr '.( $item["auditorium_id"] == 1 ? 'style="color: #FF3333 !important;"' : "").'>'
            . '<td>'. $item["title_lv"] .'</td>'
            . '<td>' .$item["start_time"]. '</td>'
            . '<td>' .$item["end_time"]. '</td>'
            . '<td>' .$item["duration"]. '</td>'
            . '<td>' .$item["price"]. '</td>'
            . '<td><a class="btn btn-info btn-xs" href="/show/edit/'.$item["id"].'">Labot</a>'
                   . '<a class="btn btn-danger btn-xs" href="/show/cancel/'.$item["id"].'" onclick="return confirm(\'Apstipriniet darbību.\');">Atcelt</a></td>'
            .'</tr>';
        }
        ?>
    </tbody>  
</table>  

